#ifndef _CYLINDER_H_
#define _CYLINDER_H_
#include <iostream>
#define PI 3.141592654
class Cylinder{
    private:
    double length;
    double radius;

    public:
    Cylinder(){};
    Cylinder(double len, double r);//:length(len), radius(r){};

    double GetLength() const { return length;}
    double GetRadius() const { return radius;}
    void SetLength(double len){length = len;}
    void SetRadius(double r){radius = r;}

    double GetSideArea() const;
    double GetDArea() const;
    double GetVolume() const;
};
Cylinder::Cylinder(double len, double r):length(len), radius(r){};
double Cylinder::GetSideArea() const {
    return 2*radius*PI*length;
}

double Cylinder::GetDArea() const {
    return radius*PI*radius;
}

double Cylinder::GetVolume() const { 
    return radius*radius*PI*length;
}

#endif // _CYLINDER_H_